home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / var / lib / dpkg / info / libsane-extras.postinst < prev    next >
Encoding:
Text File  |  2010-05-03  |  1.0 KB  |  39 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. case "$1" in
  6.     configure)
  7.     if [ "$(uname -s)" = "Linux" ]; then
  8.     if [ -e /etc/hotplug/usb/libsane-extras.usermap ]; then
  9.         rm -f /etc/hotplug/usb/libsane-extras.usermap
  10.     fi
  11.     if [ -e /etc/sane.d/hotplug/libsane-extras.db ]; then
  12.         rm -f /etc/sane.d/hotplug/libsane-extras.db
  13.         rmdir -p --ignore-fail-on-non-empty /etc/sane.d/hotplug
  14.     fi
  15.     fi
  16.     ;;
  17.  
  18.     abort-upgrade|abort-remove|abort-deconfigure)
  19.     ;;
  20.  
  21.     *)
  22.     echo "$0 called with unknown argument '$1'" >&2
  23.     exit 1
  24.     ;;
  25. esac
  26.  
  27. # Automatically added by dh_installudev
  28. if [ "$1" = configure ]; then
  29.     if [ -e "/etc/udev/rules.d/z60_libsane-extras.rules" ]; then
  30.         echo "Preserving user changes to /etc/udev/rules.d/60-libsane-extras.rules ..."
  31.         if [ -e "/etc/udev/rules.d/60-libsane-extras.rules" ]; then
  32.             mv -f "/etc/udev/rules.d/60-libsane-extras.rules" "/etc/udev/rules.d/60-libsane-extras.rules.dpkg-new"
  33.         fi
  34.         mv -f "/etc/udev/rules.d/z60_libsane-extras.rules" "/etc/udev/rules.d/60-libsane-extras.rules"
  35.     fi
  36. fi
  37. # End automatically added section
  38.  
  39.